package com.labor_management_system.Service;

import com.labor_management_system.Entity.Enterprises;
import com.baomidou.mybatisplus.extension.service.IService;
import com.labor_management_system.Utils.Pair;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author deathwing475
* @description 针对表【enterprises】的数据库操作Service
* @createDate 2024-02-27 09:54:41
*/
public interface EnterprisesService extends IService<Enterprises> {
    //    void insertUnit(Enterprises enterprises);
    List<Pair<String,String>> getEnterprisesIDAndName();
    //文件上传
    Boolean upload(Enterprises enterprises, MultipartFile multipartFile) throws IOException;

    //Boolean deleteUnitById(String enterprisesId);

    List<Enterprises> showAllUnits(Integer selctPage,Integer PageSize);

    List<Enterprises> findByName(String enterprisesName, Integer enterprisesCategory);

    boolean updateUnits(Enterprises enterprises, MultipartFile multipartFile) throws IOException;

    List<Enterprises> selectAllUnit();
}
